package com.jbp.model;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 技能订单(SkillOrder)实体
 * @author cc
 * @since 2020-11-28 17:49:31
 */
@ApiModel(value="SkillOrder")
@Data
public class SkillOrder implements Serializable {
    private static final long serialVersionUID = 1L;
        
    
    private Integer id;

    //客户id
    @ApiModelProperty(value="客户id")    
    
    private Integer customerId;

    @TableField(exist = false)
    private String customerName;
    @TableField(exist = false)
    private String customerImg;
    @TableField(exist = false)
    private Integer customerLevel;
    @TableField(exist = false)
    private boolean customerLevelOn;
    @TableField(exist = false)
    private String customerSex;

    //大神id
    @ApiModelProperty(value="大神id")
    private Integer godId;

    @TableField(exist = false)
    private String godName;
    @TableField(exist = false)
    private String godImg;
    @TableField(exist = false)
    private Integer godLevel;
    @TableField(exist = false)
    private boolean godLevelOn;
    @TableField(exist = false)
    private String godSex;
    //是否评论过
    @TableField(exist = false)
    private boolean commented;

    //技能id
    @ApiModelProperty(value="技能id")    
    
    private Integer skillId;
    @TableField(exist = false)
    private String skillName;

    //大神技能id
    @ApiModelProperty(value="大神技能id")    
    
    private Integer skillUserId;

    //服务时间
    @ApiModelProperty(value="服务时间")    
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date serverTime;

    //服务次数
    @ApiModelProperty(value="服务次数")    
    
    private Integer times;

    @ApiModelProperty(value="订单号")
    private String orderNo;

    //服务单价
    @ApiModelProperty(value="服务单价")    
    
    private BigDecimal serverPrice;

    //服务总价
    @ApiModelProperty(value="服务总价")    
    
    private BigDecimal totalPrice;

    //备注
    @ApiModelProperty(value="备注")    
    
    private String remark;

    //状态 0创建 1支付成功,2待服务，3进行中，4已完成，5已取消
    @ApiModelProperty(value="状态 0创建 1支付成功,2待服务，3进行中，4已完成，5已取消, 6超时取消")
    
    private Integer status;

        
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date createTime;

        
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date updateTime;

    // 支付时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date payTime;

    // 超时取消的时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date cancelTime;
}